home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / WDFTST__ / TEXTDISP.H < prev    next >
Text File  |  1990-06-11  |  780b  |  32 lines

  1. #define INACTIVE    255
  2. #define ACTIVE        0
  3.  
  4. #define TEXT_MARGIN            10
  5.  
  6. #ifndef GROW_ICON_SIZE
  7. #define GROW_ICON_SIZE        16
  8. #endif
  9.  
  10. #ifndef nil
  11. #define nil 0L
  12. #endif
  13.  
  14. typedef struct {
  15.     WindowRecord    window;
  16.     TEHandle        text;
  17.     int                max_text;
  18.     int                min_text;
  19. } TD_record, *TD_peek;
  20.  
  21. WindowPtr TD_new(
  22.     int        window_id,        /* ID of WIND resource */
  23.     int        max_text,        /* keep at most this many characters */
  24.     int        min_text,        /* don't discard any text until so much */
  25.     int        text_size,        /* font size */
  26.     OsErr    *status );        /* error code */
  27. void    TD_resize( WindowPtr the_display );
  28. void    TD_printf( WindowPtr the_display, char *format, ... );
  29. void    TD_update( WindowPtr the_display );
  30. void    TD_click( WindowPtr the_display, Point where );
  31. void    TD_activate( WindowPtr the_display, Boolean activate );
  32.